TextData

interface TextData : UploadData

An upload data of the text/plain content type.

Functions

Link copied to clipboard
open fun bytes(): Array<Byte>
Returns an array containing the upload data bytes of the associated URL request.
Link copied to clipboard
Returns the content type of this upload data as specified in the Content-Type header.
Link copied to clipboard
open fun data(): String
Returns a text representation of the upload data.
Link copied to clipboard
open fun of(text: String): TextData
Returns an instance of TextData with the given upload data obtained from the text string.